Skip to content

Keep standalone initramfs for grub-btrfs when UKI is enabled#4513

Open
Softer wants to merge 1 commit intoarchlinux:masterfrom
Softer:fix-4505-uki-grub-btrfs
Open

Keep standalone initramfs for grub-btrfs when UKI is enabled#4513
Softer wants to merge 1 commit intoarchlinux:masterfrom
Softer:fix-4505-uki-grub-btrfs

Conversation

@Softer
Copy link
Copy Markdown
Contributor

@Softer Softer commented May 2, 2026

Fixes #4505

When UKI and Grub are used together with btrfs snapshots (Snapper or Timeshift), _config_uki() no longer comments out *_image= lines in mkinitcpio presets and no longer deletes initramfs files. This lets mkinitcpio -P generate both UKI and standalone initramfs, so grub-btrfs can find initramfs-linux.img for snapshot boot entries.

Without this fix, _config_uki() unconditionally disables standalone initramfs generation, leaving grub-btrfs without a bootable kernel image for snapshots.

@Softer Softer requested a review from Torxed as a code owner May 2, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

btrfs + snapper + grub-btrfs produces unbootable snapshots: UKI-only mkinitcpio preset leaves grub-btrfs without standalone initramfs

1 participant